#ifndef MUSICLIST_H
#define MUSICLIST_H
#include <QVector>
#include <QMimeDatabase>
#include "music.h"
#include "listitembox.h"
#include <QSqlQuery>
#include <QSqlError>
typedef typename QVector<music>::iterator iterator;
class MusicList
{
public:
    MusicList();
    void addMusicByUrl(const QList<QUrl>& urls);
    void reFresh(MusicList& musicList);
    iterator findMusicById(const QString& musicId);
    iterator begin();
    iterator end();
    void writeToDB();
    void readFromDB();
private:
    QVector<music> musicList;
};



#endif // MUSICLIST_H
